package com.movieproject.src;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Handles requests for the application home page.
 */
@Controller
public class HomeController {
    	
	@RequestMapping(value = "", method = RequestMethod.GET)
	public String bloop(Model model){
		//name of jsp file
		return "thehomepage";
	}
	
	@RequestMapping(value = "movies", method = RequestMethod.GET)
	public String secondpage(Model model){
		
		
		//name of jsp file
		return "home2";
	}
	@RequestMapping(value = "myaccount", method = RequestMethod.GET)
	public String thirdpage(Model model){
		
		
		//name of jsp file
		return "home3";
	}
	@RequestMapping(value = "search", method = RequestMethod.GET)
	public String fourthpage(Model model){
		
		
		//name of jsp file
		return "search";
	}
	/*//Now handled on separate controller called CheckInrentalsController
	 * @RequestMapping(value = "CheckInRentals", method = RequestMethod.GET)
	public String fifthpage(Model model){
		
		
		//name of jsp file
		return "CheckInRentals";
	}*/
	@RequestMapping(value = "queue", method = RequestMethod.GET)
	public String seventhpage(Model model)
	{		
		//name of jsp file
		return "queue";
	}	
	
	@RequestMapping(value = "MyAccount", method=RequestMethod.GET)
	public String UserProfile(Model model) {
		return "MyAccount";
	}
	
/*	@RequestMapping(value = "EditAccount", method = RequestMethod.GET) 
	public String EditAccount() {
		return "EditAccount";
	}*/
	
/*	@RequestMapping(value = "movie", method=RequestMethod.GET)
	public String tenthpage(Model model) {
		return "movie";
	}*/
	@RequestMapping(value = "ReturnMovieSuccess", method=RequestMethod.GET)
	public String eleventhpage(Model model) {
		return "ReturnMovieSuccess";
	}
	@RequestMapping(value = "viewmyqueue", method=RequestMethod.GET)
	public String twelfthpage(Model model) {
		return "viewmyqueue";
	}
	@RequestMapping(value = "viewqueue", method=RequestMethod.GET)
	public String thirteenthpage(Model model) {
		return "viewqueue";
	}
	@RequestMapping(value = "thehomepage", method = RequestMethod.GET)
	public String login(Model model){
		
		
		//name of jsp file
		return "thehomepage";
	}
	@RequestMapping(value = "cart", method=RequestMethod.GET)
	public String nineteenthpage(Model model) {
		return "cart";
	}
	@RequestMapping(value = "scroll", method=RequestMethod.GET)
	public String page20(Model model) {
		return "scroll";
	}
	@RequestMapping(value = "AboutUs", method=RequestMethod.GET)
	public String page21(Model model) {
		return "AboutUs";
	}
	@RequestMapping(value = "Jobs", method=RequestMethod.GET)
	public String page22(Model model) {
		return "Jobs";
	}
	@RequestMapping(value = "FAQ", method=RequestMethod.GET)
	public String page23(Model model) {
		return "FAQ";
	}
	@RequestMapping(value = "HelpCenter", method=RequestMethod.GET)
	public String page24(Model model) {
		return "HelpCenter";
	}
}
